home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
util
/
cli
/
MiscCLICmds_CH.lha
/
ReverseMem.doc
< prev
Wrap
Text File
|
1996-09-23
|
2KB
|
57 lines
ReverseMem V1.0 by Chris Hodges
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Introduction
~~~~~~~~~~~~
This command installs a small patch in exec's memory allocation routine
which will set the MEMF_REVERSE bit on every memory allocation. Why can
this be a sensible to do? Look at this example:
During boot-up, you're displaying a nice boot picture in a very high
resolution, let's say 800*600 in HAM8. This screen will take about half a
megabyte of chip memory. After your workbench has been loaded, the screen
disappears, but oh no, the chip memory is fragmented, the largest chip
memory chunk is only about 1 MB large. This problem can be avoided by
telling exec to allocate the memory for the screen in the lower region of
the memory, which is done by setting the MEMF_REVERSE flag. By doing this
on temporary memory allocations, your memory will stay much less fragmented
than without.
Requirements
~~~~~~~~~~~~
ReverseMem needs Kick 2.04 or higher. The use of patch handlers will
probably cause some problems and should be avoided (not tested, however).
Usage
~~~~~
ReverseMem [OFF] [CHIPONLY] [NOCHIP]
The patch will be installed, if you don't specify the OFF switch.
Optionally, you can give the CHIPONLY or NOCHIP keywords which will force
the patch to be only applied on chip memory (CHIPONLY) or fast memory
(NOCHIP).
ReverseMem should be turned off directly after the critical memory
allocation. Example from my startup-sequence:
ReverseMem >NIL: CHIPONLY
PicBoot DH1:Grafik/BootLogos/#? FJ FI 2 FO 3 FWB 1 BB DL 125 P D
ReverseMem >NIL: OFF
History
~~~~~~~
V1.0 (30-Jun-96): First release.
Contact address
~~~~~~~~~~~~~~~
Any mails or donations to:
Chris Hodges Account: 359 68 63
Kennedystr. 8 BLZ : 700 530 70
D-82178 Puchheim Bank : Sparkasse Fürstenfeldbruck
Germany
Tel.: +49-89/8005856
Email: chris@sixpack.pfalz.de